package cn.bxshey.modules_user.service.impl;

import cn.bxshey.general.entity.User;
import cn.bxshey.modules_user.mapper.UserMapper;
import cn.bxshey.modules_user.service.UserService;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

/**
 * @作者：不想说话而已
 * @Date：2023/11/27 22:29
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    //获取用户所有信息
    @Override
    public List<User> selectGetAll() {
        return userMapper.selectGetAll();
    }

    //根据用户id获取用户信息
    @Override
    public User selectById(Long id) {
        return userMapper.selectById(id);
    }


}
